home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Tele / M / Message Minder 0.1a .cpt / Message minder / background_2760.txt < prev    next >
Text File  |  1990-08-21  |  14KB  |  586 lines

  1. -- background: 2760 from stack: in
  2. -- bmap block id: 3326
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openBackground
  8.   push recent card
  9. end openBackground
  10. on newCard
  11.   tabKey
  12. end newCard
  13.  
  14.  
  15.  
  16. -- part 2 (field)
  17. -- low flags: 00
  18. -- high flags: 0000
  19. -- rect: left=83 top=39 right=57 bottom=115
  20. -- title width / last selected line: 0
  21. -- icon id / first selected line: 0 / 0
  22. -- text alignment: 0
  23. -- font id: 0
  24. -- text size: 12
  25. -- style flags: 0
  26. -- line height: 16
  27. -- part name: Topic
  28.  
  29.  
  30. -- part 3 (field)
  31. -- low flags: 00
  32. -- high flags: 4007
  33. -- rect: left=11 top=60 right=196 bottom=496
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 0 / 0
  36. -- text alignment: 0
  37. -- font id: 3
  38. -- text size: 10
  39. -- style flags: 0
  40. -- line height: 13
  41. -- part name: Text
  42.  
  43.  
  44. -- part 6 (button)
  45. -- low flags: 00
  46. -- high flags: 0000
  47. -- rect: left=423 top=197 right=222 bottom=450
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 1014 / 1014
  50. -- text alignment: 1
  51. -- font id: 0
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: Prev
  56. ----- HyperTalk script -----
  57. on mouseUp
  58.   visual effect wipe right
  59.   go to previous card
  60. end mouseUp
  61.  
  62.  
  63.  
  64. -- part 7 (button)
  65. -- low flags: 00
  66. -- high flags: 0000
  67. -- rect: left=453 top=197 right=222 bottom=480
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 1013 / 1013
  70. -- text alignment: 1
  71. -- font id: 0
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: Next
  76. ----- HyperTalk script -----
  77. on mouseUp
  78.   visual effect wipe left
  79.   go to next card
  80. end mouseUp
  81.  
  82.  
  83.  
  84. -- part 8 (button)
  85. -- low flags: 00
  86. -- high flags: 0000
  87. -- rect: left=10 top=195 right=224 bottom=42
  88. -- title width / last selected line: 0
  89. -- icon id / first selected line: 21700 / 21700
  90. -- text alignment: 1
  91. -- font id: 0
  92. -- text size: 12
  93. -- style flags: 0
  94. -- line height: 16
  95. -- part name: Home
  96. ----- HyperTalk script -----
  97. on mouseUp
  98.   visual effect iris open
  99.   go Home
  100. end mouseUp
  101.  
  102.  
  103.  
  104. -- part 9 (button)
  105. -- low flags: 00
  106. -- high flags: 0000
  107. -- rect: left=389 top=197 right=222 bottom=419
  108. -- title width / last selected line: 0
  109. -- icon id / first selected line: 1012 / 1012
  110. -- text alignment: 1
  111. -- font id: 0
  112. -- text size: 12
  113. -- style flags: 0
  114. -- line height: 16
  115. -- part name: Return
  116. ----- HyperTalk script -----
  117. on mouseUp
  118.   visual effect iris close
  119.   pop card
  120. end mouseUp
  121.  
  122.  
  123.  
  124. -- part 10 (button)
  125. -- low flags: 00
  126. -- high flags: 0000
  127. -- rect: left=72 top=197 right=224 bottom=108
  128. -- title width / last selected line: 0
  129. -- icon id / first selected line: 32670 / 32670
  130. -- text alignment: 1
  131. -- font id: 0
  132. -- text size: 12
  133. -- style flags: 0
  134. -- line height: 16
  135. -- part name: 
  136. ----- HyperTalk script -----
  137. on mouseUp
  138.   show all cards
  139. end mouseUp
  140.  
  141.  
  142.  
  143. -- part 13 (button)
  144. -- low flags: 00
  145. -- high flags: 0000
  146. -- rect: left=111 top=197 right=221 bottom=141
  147. -- title width / last selected line: 0
  148. -- icon id / first selected line: 3430 / 3430
  149. -- text alignment: 1
  150. -- font id: 0
  151. -- text size: 12
  152. -- style flags: 0
  153. -- line height: 16
  154. -- part name: Rolo
  155. ----- HyperTalk script -----
  156. on mouseUp
  157.   visual effect zoom open
  158.   go to stack "Address"
  159. end mouseUp
  160.  
  161.  
  162.  
  163. -- part 14 (button)
  164. -- low flags: 00
  165. -- high flags: 0000
  166. -- rect: left=144 top=197 right=223 bottom=173
  167. -- title width / last selected line: 0
  168. -- icon id / first selected line: 20965 / 20965
  169. -- text alignment: 1
  170. -- font id: 0
  171. -- text size: 12
  172. -- style flags: 0
  173. -- line height: 16
  174. -- part name: To Do
  175. ----- HyperTalk script -----
  176. on mouseUp
  177.   visual effect zoom open
  178.   go first card of background "To Do" of "Datebook"
  179. end mouseUp
  180.  
  181.  
  182.  
  183. -- part 15 (button)
  184. -- low flags: 00
  185. -- high flags: 0000
  186. -- rect: left=175 top=197 right=223 bottom=211
  187. -- title width / last selected line: 0
  188. -- icon id / first selected line: 21209 / 21209
  189. -- text alignment: 1
  190. -- font id: 0
  191. -- text size: 12
  192. -- style flags: 0
  193. -- line height: 16
  194. -- part name: Daily
  195. ----- HyperTalk script -----
  196. --with option key down, goes to the six-month calendar
  197.  
  198. on mouseUp
  199.   get the optionKey
  200.   set lockScreen to true
  201.   go stack "DateBook"
  202.   if it is down then
  203.     goSixMonthly the seconds
  204.     exit mouseUp
  205.   end if
  206.   goWeekly the seconds
  207.   set lockScreen to false
  208. end mouseUp
  209.  
  210.  
  211.  
  212. -- part 17 (button)
  213. -- low flags: 00
  214. -- high flags: 0000
  215. -- rect: left=215 top=197 right=222 bottom=245
  216. -- title width / last selected line: 0
  217. -- icon id / first selected line: 30696 / 30696
  218. -- text alignment: 1
  219. -- font id: 0
  220. -- text size: 12
  221. -- style flags: 0
  222. -- line height: 16
  223. -- part name: Phone
  224. ----- HyperTalk script -----
  225. on mouseUp
  226.   get the selection
  227.   if it is empty then ask "Dial what number?"
  228.   if it is not empty then
  229.     push this card
  230.     visual effect zoom open
  231.     go to stack "Phone"
  232.     dial it
  233.     pop card
  234.   end if
  235. end mouseUp
  236.  
  237.  
  238.  
  239. -- part 18 (button)
  240. -- low flags: 00
  241. -- high flags: 0000
  242. -- rect: left=249 top=198 right=221 bottom=277
  243. -- title width / last selected line: 0
  244. -- icon id / first selected line: 1007 / 1007
  245. -- text alignment: 1
  246. -- font id: 0
  247. -- text size: 12
  248. -- style flags: 0
  249. -- line height: 16
  250. -- part name: Print selection
  251. ----- HyperTalk script -----
  252. --To use this button: select the text you want to print, then click me!
  253. --(requires TeachText, available on almost any application disk)
  254.  
  255. --option only: start fresh or append an item but dont print
  256. --command: print current file (after you've used option)
  257. --(Note: To be safe, put a on ShutDownscript in your home stack to print
  258. --any unprinted text)
  259. on mouseUp
  260.   global hyperTempStatus
  261.   put the optionKey into option
  262.   get the commandKey
  263.   put ":HyperCard:HyperTemp" into myFile
  264.   if it = "down" then
  265.     print myFile with "TeachText"
  266.     put empty into hyperTempStatus
  267.     exit mouseUp
  268.   end if
  269.   if option = "down" then
  270.     open file myFile
  271.     if hyperTempStatus is "open" then
  272.       read from file myFile for 10000
  273.       --write it to file myFile
  274.       write return & return to file myFile
  275.     end if
  276.     write the selection to file myFile
  277.     close file myFile
  278.     put "open" into hyperTempStatus
  279.     exit mouseUp
  280.   end if
  281.   open file myFile
  282.   write the selection to file myFile
  283.   close file myFile
  284.   print myFile with "TeachText"
  285. end mouseUp
  286.  
  287.  
  288.  
  289. -- part 21 (button)
  290. -- low flags: 00
  291. -- high flags: 8003
  292. -- rect: left=271 top=24 right=45 bottom=335
  293. -- title width / last selected line: 0
  294. -- icon id / first selected line: 0 / 0
  295. -- text alignment: 1
  296. -- font id: 0
  297. -- text size: 12
  298. -- style flags: 0
  299. -- line height: 16
  300. -- part name: Export
  301. ----- HyperTalk script -----
  302. on mouseUp
  303.   --ask "Text file name, please." with field "heading"
  304.   go to first card
  305.   repeat for the number of cards
  306.     if field "Flag" is not "R" then
  307.       go next card
  308.       next repeat
  309.     end if
  310.     if field "Cat" is empty then
  311.       answer "Category is blank, skip this card?" with "Cancel" or "Skip" or "Include"
  312.       if it is "Cancel" then exit mouseUp
  313.       if it is "Skip" then
  314.         go next card
  315.         next repeat
  316.       end if
  317.     end if
  318.     wrapit
  319.     --To select a folder to keep replies in, replace "GEnie" on the next
  320.     --line with the folder name or pathname you want (pathname =
  321.     --folders within folders, separated by colons)
  322.     put ":GEnie:Reply Cat " & field "Cat" & " Topic " & field "Topic" into theFile
  323.     if theFile is not empty then open file theFile else exit mouseUp
  324.     write field "Reply" & return to file theFile
  325.     close file theFile
  326.     put empty into field "Flag"
  327.     go next card
  328.   end repeat
  329.   beep
  330. end mouseUp
  331. on wrapit
  332.   put 250 into lineLength
  333.   put fld "Reply" into Text
  334.   put empty into newText
  335.   repeat with x = one to the number of lines in Text
  336.     set the cursor to busy
  337.     put line x of Text into thisLine
  338.     if the length of thisLIne <= lineLength
  339.     then put line x of Text & return after newText
  340.   else
  341.     repeat until the length of thisLine <= lineLength
  342.       get the number of words in char 1 to lineLength of thisLine
  343.       if char linelength to linelength + one of thisLIne contains " " then add one to it
  344.       subtract one from it
  345.       put word one to it of thisLine & return after newText
  346.       delete word one to it of thisLine
  347.     end repeat
  348.     put thisLine & return after newText
  349.   end if
  350. end repeat
  351. put newText into fld "Reply"
  352. end wrapit
  353.  
  354.  
  355.  
  356. -- part 22 (button)
  357. -- low flags: 00
  358. -- high flags: 8003
  359. -- rect: left=399 top=24 right=37 bottom=492
  360. -- title width / last selected line: 0
  361. -- icon id / first selected line: 0 / 0
  362. -- text alignment: 1
  363. -- font id: 0
  364. -- text size: 12
  365. -- style flags: 0
  366. -- line height: 16
  367. -- part name: delete cards
  368. ----- HyperTalk script -----
  369. on mouseUp
  370.   beep
  371.   answer "Delete ALL cards in stack (except this)?" with "OK" or "Cancel"
  372.   if it is "Cancel" then exit mouseUp
  373.   go next card
  374.   repeat for the number of cards - 1
  375.     doMenu "delete Card"
  376.   end repeat
  377.   doMenu "Compact Stack"
  378. end mouseUp
  379.  
  380.  
  381.  
  382. -- part 23 (button)
  383. -- low flags: 00
  384. -- high flags: 8003
  385. -- rect: left=400 top=39 right=52 bottom=493
  386. -- title width / last selected line: 0
  387. -- icon id / first selected line: 0 / 0
  388. -- text alignment: 1
  389. -- font id: 0
  390. -- text size: 12
  391. -- style flags: 0
  392. -- line height: 16
  393. -- part name: clear fields
  394. ----- HyperTalk script -----
  395. on mouseUp
  396.   beep
  397.   if the optionKey is up then
  398.     answer "Clear all fields on this card?" with "OK" or "Cancel"
  399.     if it is "Cancel" then exit mouseUp
  400.   end if
  401.   repeat with x = 1 to 7
  402.     put empty into field x
  403.   end repeat
  404. end mouseUp
  405.  
  406.  
  407.  
  408. -- part 25 (field)
  409. -- low flags: 00
  410. -- high flags: 4007
  411. -- rect: left=11 top=222 right=341 bottom=496
  412. -- title width / last selected line: 0
  413. -- icon id / first selected line: 0 / 0
  414. -- text alignment: 0
  415. -- font id: 3
  416. -- text size: 10
  417. -- style flags: 0
  418. -- line height: 13
  419. -- part name: Reply
  420. ----- HyperTalk script -----
  421. on closeField
  422.   put "R" into field "Flag"
  423.   if me is empty then put empty into field "Flag"
  424. end closeField
  425.  
  426.  
  427.  
  428. -- part 26 (field)
  429. -- low flags: 00
  430. -- high flags: 0000
  431. -- rect: left=84 top=22 right=40 bottom=116
  432. -- title width / last selected line: 0
  433. -- icon id / first selected line: 0 / 0
  434. -- text alignment: 0
  435. -- font id: 0
  436. -- text size: 12
  437. -- style flags: 0
  438. -- line height: 16
  439. -- part name: Cat
  440.  
  441.  
  442. -- part 27 (field)
  443. -- low flags: 00
  444. -- high flags: 0000
  445. -- rect: left=13 top=40 right=59 bottom=36
  446. -- title width / last selected line: 0
  447. -- icon id / first selected line: 0 / 0
  448. -- text alignment: 0
  449. -- font id: 0
  450. -- text size: 12
  451. -- style flags: 0
  452. -- line height: 16
  453. -- part name: Page
  454.  
  455.  
  456. -- part 28 (field)
  457. -- low flags: 00
  458. -- high flags: 0000
  459. -- rect: left=117 top=39 right=57 bottom=149
  460. -- title width / last selected line: 0
  461. -- icon id / first selected line: 0 / 0
  462. -- text alignment: 0
  463. -- font id: 0
  464. -- text size: 12
  465. -- style flags: 0
  466. -- line height: 16
  467. -- part name: Flag
  468.  
  469.  
  470. -- part 29 (field)
  471. -- low flags: 00
  472. -- high flags: 0000
  473. -- rect: left=151 top=43 right=59 bottom=400
  474. -- title width / last selected line: 0
  475. -- icon id / first selected line: 0 / 0
  476. -- text alignment: 0
  477. -- font id: 3
  478. -- text size: 9
  479. -- style flags: 0
  480. -- line height: 12
  481. -- part name: Heading
  482.  
  483.  
  484. -- part 32 (button)
  485. -- low flags: 00
  486. -- high flags: 0000
  487. -- rect: left=43 top=198 right=223 bottom=71
  488. -- title width / last selected line: 0
  489. -- icon id / first selected line: 19678 / 19678
  490. -- text alignment: 1
  491. -- font id: 0
  492. -- text size: 12
  493. -- style flags: 0
  494. -- line height: 16
  495. -- part name: Tell Me About...
  496. ----- HyperTalk script -----
  497. on mouseUp
  498.   push card
  499.   visual effect iris open
  500.   go stack "About Message Minder"
  501. end mouseUp
  502.  
  503.  
  504. -- part 33 (button)
  505. -- low flags: 00
  506. -- high flags: 8003
  507. -- rect: left=212 top=23 right=45 bottom=268
  508. -- title width / last selected line: 0
  509. -- icon id / first selected line: 0 / 0
  510. -- text alignment: 1
  511. -- font id: 0
  512. -- text size: 12
  513. -- style flags: 0
  514. -- line height: 16
  515. -- part name: Import
  516. ----- HyperTalk script -----
  517. on mouseUp
  518.   put FileName("TEXT") into theFile
  519.   if theFile is not empty then
  520.     repeat with x = 1 to 7
  521.       put empty into field x
  522.     end repeat
  523.     push card
  524.     put one into counter
  525.     put "*" into aStar
  526.     put "***********" & return into theStars
  527.     put "-" into aDash
  528.     put "-----------" & return into theDashes
  529.     put empty into thatsAll
  530.     put theFile into field "heading"
  531.     open file theFile
  532.     repeat
  533.       put empty into myText
  534.       repeat
  535.         read from file theFile until aDash
  536.         if it is empty then exit repeat
  537.         put it after myText
  538.         read from file theFile for 12
  539.         if it is theDashes then exit repeat
  540.         put it after myText
  541.         set cursor to busy
  542.       end repeat
  543.       put it after myText
  544.       repeat
  545.         read from file theFile until return
  546.         if it is empty then exit repeat
  547.         if word one of it is "Category" then
  548.           put word 2 of it into theCat
  549.           if word three of it is "Topic" then
  550.             put word four of it into theTopic
  551.             exit repeat
  552.           end if
  553.         end if
  554.         put it after myText
  555.       end repeat
  556.       put it after myText
  557.       put theCat into field "Cat"
  558.       put theTopic into field "Topic"
  559.       put myText into field "Text"
  560.       repeat
  561.         read from file theFile until aStar
  562.         if it is empty then
  563.           put "true" into thatsAll
  564.           exit repeat
  565.         end if
  566.         put it after myText
  567.         read from file theFile for 12
  568.         if it is theStars then exit repeat
  569.         put it after myText
  570.         set cursor to busy
  571.       end repeat
  572.       put it after myText
  573.       put myText into field "text"
  574.       if thatsAll is "true" then exit repeat
  575.       doMenu "New Card"
  576.       add 1 to counter
  577.       put counter into field "Page"
  578.     end repeat
  579.     pop card
  580.     close file theFile
  581.     beep
  582.   end if
  583. end mouseUp
  584.  
  585.  
  586.